package com.itheima.pojo;



/**
 * @BelongsProject: project-springbootdemo02
 * @BelongsPackage: com.itheima.pojo
 * @Author: jiangyi
 * @CreateTime: 2025-08-04  21:09
 * @Description: TODO
 * @Version: 1.0
 */


public class StudentQueryParam {
    private Integer page;
    private Integer pageSize;
    private String name;
    private Integer degree;
    private Integer clazzId;

    public StudentQueryParam() {
    }

    public StudentQueryParam(Integer page, Integer pageSize, String name, Integer degree, Integer clazzId) {
        this.page = page;
        this.pageSize = pageSize;
        this.name = name;
        this.degree = degree;
        this.clazzId = clazzId;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page == null ? 1 : page;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize == null ? 10 : pageSize;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getDegree() {
        return degree;
    }

    public void setDegree(Integer degree) {
        this.degree = degree;
    }

    public Integer getClazzId() {
        return clazzId;
    }

    public void setClazzId(Integer clazzId) {
        this.clazzId = clazzId;
    }
}
